package com.bytedy.sboot.support.dto;
import java.io.Serial;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import lombok.Data;

@Data
public class AuthUserDTO implements UserDetails, Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private String username;
    private String password;
    private List<GrantedAuthority> authorities;

    @JsonIgnore
    private Boolean enabled;
    @JsonIgnore
    private Boolean accountNonLocked;
    @JsonIgnore
    private Boolean accountNonExpired;
    @JsonIgnore
    private Boolean credentialsNonExpired;

}